import request from '@/utils/request'

// 上传图片文件
export function uploadImageFile(file) {
  const formData = new FormData()
  formData.append('file', file)
  return request({
    url: '/system/image', // 假设上传接口路径为 /oss/upload，可按需修改
    method: 'post',
    data: formData,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}